package com.lianzai.ticket.service;

import com.lianzai.ticket.model.MerchantTicketDO;
import com.lianzai.ticket.model.Ticket;
import com.lianzai.ticket.model.TicketUseInfoDO;

import java.util.List;
import java.util.Map;

/**
 * 优惠券
 * @author aichao
 * @date 2019-4-9 22:09:40
 */
public interface TicketService {

	List<Ticket> list(Map<String, Object> map);
	int count(Map<String, Object> map);
	int remove(Long id);
	List<Map<String, Object>> queryTicektShopUsedList(Map<String, Object> map);
	int save(Ticket ticket);
	int update(Ticket ticket);
	Ticket get(Long id);
	List<Map<String, Object>> listRel(Map<String, Object> map);
	int bind(Long communityId,Long ticketId,int type);

	List<Ticket> check(String name);
	Ticket getTicketByWXId(String openId);
	MerchantTicketDO getTicketOverview(Integer userId);
	List<Map<String, Object>> getTicketOrderList(Map<String, Object> map);
	int countTicketOrder(Integer userId);
	List<TicketUseInfoDO> getTicketUseList(Map<String, Object> map);
	int countTicketUse(Map<String, Object> map);

	Ticket getTicketSpecByUserAndCommunity(Map<String, Object> map);
}
